


# def update(*args):

#     if  len(args)==1:
#         print(1)
#     elif len(args)==2:
#         print(2)
# # update({1:1,2:2})
# update('key','value')




def foo():
    print('starting...')
    for i in range(3):
        res= yield 4
        print('res',res)
    print('ending...')

g= foo()
print(next(g))
print('*'*20)
print(next(g))
print('*'*20)
print(next(g))
print('*'*20)
print(next(g))